package tst

import java.nio.channels.*

RandomAccessFile raf = new RandomAccessFile("c:/temp/locked.txt", "rw");
FileChannel fc = raf.getChannel();
FileLock fl = fc.lock()

println 'end'

